package com.test;

public class Student extends Person{
    private double scorce;

    public double getScorce() {
        return scorce;
    }

    public void setScorce(double scorce) {
        this.scorce = scorce;
    }

    public Student() {
    }

    public Student(String name, int age,double scorce) {
        super(name, age);
        this.scorce=scorce;
    }

    public void study(){
        System.out.println("姓名为"+super.getName()+"的"+super.getAge()+"岁的"+scorce+"分的学生正在学习");
    }
}
